<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印预览报价单</title>
<style type="text/css">
.rightboder {
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #000;
}
.leftboder {
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #000;
}
.bottomboder {
	border-bottom-width: 3px;
	border-bottom-style: double;
	border-bottom-color: #000;
}
.allboder {
	border: 1px solid #000;
}
.graybcakcolor {
	background-color: gray;
}
h1 {
	font-size: 24px;
}
h2 {
	font-size: 18px;
}
body {
	font-size: 14px;
}
* {
	font-size: 14px;
	margin: 0px;
	padding: 0px;
}
.darkgreybackcolor {
	background-color: #CCC;
}
.topborder {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #000;
}
</style>
</head>

<body>
<table border="0" cellpadding="0" cellspacing="0" class="allboder">
  <col width="55" />
  <col width="43" />
  <col width="48" />
  <col width="58" />
  <col width="57" />
  <col width="86" />
  <col width="74" />
  <col width="91" />
  <col width="39" />
  <col width="54" />
  <col width="33" />
  <col width="12" />
  <col width="61" />
  <col width="33" />
  <tr align="center" valign="middle">
    <td width="744" colspan="14"><h1><br />
    <?php echo $this->cominfo->name_en;?></h1></td>
  </tr>
  <tr>
    <td colspan="14" align="center" valign="middle"><h2><br />
    <?php echo $this->cominfo->name_cn;?></h2></td>
  </tr>
  <tr>
    <td colspan="14">　</td>
  </tr>
  <tr>
    <td colspan="4">　</td>
    <td colspan="2">Add:  </td>
    <td colspan="9"> <?php echo $this->cominfo->address;?></td>
  </tr>
  <tr>
    <td colspan="4">　</td>
    <td colspan="2">Tel:  </td>
    <td colspan="9"> <?php echo $this->cominfo->tel;?></td>
  </tr>
  <tr>
    <td colspan="4">　</td>
    <td colspan="2">Fax:  </td>
    <td colspan="9"> <?php echo $this->cominfo->fax;?></td>
  </tr>  
  <tr>
    <td colspan="4">　</td>
	<td colspan="2">Website:  </td>
    <td colspan="9"> <?php echo $this->cominfo->website;?></td>
  </tr>
  <tr>
    <td colspan="14">　</td>
  </tr>
  <tr>
    <td colspan="14" align="center" valign="middle"><h1 class="darkgreybackcolor ">QUOTATION</h1></td>
  </tr>
  <tr>
    <td colspan="14" class="topborder">　</td>
  </tr>
  <tr>
    <td colspan="3" align="right" class="rightboder">To:</td>
    <td colspan="4">　<?php echo $this->customer->name_en;?></td>
    <td class="leftboder">From:  </td>
    <td colspan="6"> <?php echo $this->cominfo->name_en;?></td>
  </tr>
  <tr>
    <td colspan="3" align="right" class="rightboder">Company:</td>
    <td colspan="4">　<?php echo $this->customer->name_en;?></td>
    <td class="leftboder">Phone: </td>
    <td colspan="6"> <?php echo $this->customer->tel;?></td>
  </tr>
  <tr>
    <td colspan="3" align="right" class="rightboder">Telephone/Fax:</td>
    <td colspan="4"> <?php echo $this->customer->fax;?></td>
    <td class="leftboder">Email: </td>
    <td colspan="6"> <?php echo $this->customer->email;?></td>
  </tr>
  <tr>
    <td colspan="3" align="right" class="rightboder">Delivery Time:</td>
    <td colspan="4"> <?php echo $this->quote->enquiry_time;?></td>
    <td class="leftboder">Date: </td>
    <td colspan="6"> <?php echo $this->quote->quoted_time;?></td>
  </tr>
  <tr>
    <td colspan="3" align="right" class="rightboder">　</td>
    <td colspan="4">　</td>
    <td class="bottomboder leftboder">　</td>
    <td colspan="6"></td>
  </tr>
  <tr>
    <td colspan="14">　</td>
  </tr>
  <tr class="graybcakcolor ">
    <td align="center" valign="middle">Item No.</td>
    <td colspan="2" align="center" valign="middle">NAME</td>
    <td colspan="2" align="center" valign="middle"> SIZE</td>
    <td align="center" valign="middle">CARTON</td>
    <td colspan="2" align="center" valign="middle">Description</td>
    <td align="center" valign="middle">QTY.</td>
    <td colspan="3" align="center" valign="middle">Unit Price</td>
    <td colspan="2" align="center" valign="middle">Item Price</td>
  </tr>
  <?php if(is_array($this->products)){ 
			$i = 0;
			foreach($this->products as $p){
				$classR= ($i++)%2 ? "darkgreybackcolor":"";
  ?>
  <tr class="<?php echo $classR ;?>">
    <td align="center" valign="middle" class="rightboder "><?php echo $i ;?></td>
    <td colspan="2" align="center" valign="middle" class="rightboder ">　<?php echo $p["name_en"] ;?></td>
    <td colspan="2" align="center" valign="middle" class="rightboder ">　<?php echo $p["specification"] ;?></td>
    <td align="center" valign="middle" class="rightboder ">　<?php echo $p["custmer_art_no"] ;?></td>
    <td colspan="2" align="center" valign="middle" class="rightboder ">　<?php echo $p["note"] ;?></td>
    <td align="center" valign="middle" class="rightboder ">　<?php echo $p["quantity"] ;?></td>
    <td colspan="3" align="center" valign="middle" class="rightboder ">　<?php echo $p["price"] ;?></td>
    <td colspan="2" align="center" valign="middle " class="">　<?php echo ($p["price"]) *  ($p["quantity"]);?></td>
  </tr>
  <?php }}?>
  <tr>
    <td colspan="14" class="bottomboder">　</td>
  </tr>
  <tr>
    <td colspan="14">　</td>
  </tr>
  <tr>
    <td colspan="14" width="744">  Notes:           <br />
      1. The price is based on FOB    Shanghai port and keeps valid for 30 days.           <br />
      2. Delivery is 90 days upon    confirmation of purchasing order&nbsp; and advance payment, whichever is    late.           <br />
      3. Payment terms shall be 30% in    advance by TT and balance upon BL copy.      <br /></td>
  </tr>
  <tr>
    <td colspan="14"> </td>
  </tr>
</table>
</body>
</html>
